from common.Utils import BlogDriver
from test import BlogEdit
from test import BlogLogin
from test import BlogList
from test import BlogDetail

if __name__=="__main__":
    #测试登录失败
    BlogLogin.BlogLogin().BlogLoginFailTest()
    #测试登录成功
    BlogLogin.BlogLogin().BlogLoginSucTest()
    #测试博客首页
    BlogList.BlogList().ListTestBylogin()
    #测试博客编辑页
    BlogLogin.BlogLogin().BlogLoginSucTest()
    BlogEdit.BlogEditTest().EditFailTest()
    BlogEdit.BlogEditTest().EditSucTest()
    #测试博客详情页
    BlogDetail.BlogDetail().BlogDetailTest()
    #退出浏览器
    BlogDriver.driver.quit()
